package com.wash.shoes.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author ljg
 * @since 2024-09-12
 */
@ApiModel(value = "美团的回调记录")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("os_mt_call_black")
public class MtCallBlackPo extends Model<MtCallBlackPo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "回调消息的id")
    private String id;

    @ApiModelProperty(value = "消息类型")
    private Integer msgType;

    @ApiModelProperty(value = "消息推送时间戳（秒）")
    private Long timestamp;

    @ApiModelProperty(value = "消息的安全签名，可以根据此签名判断消息真伪")
    private String sign;

    @ApiModelProperty(value = "开发者id")
    private Integer developerId;

    @ApiModelProperty(value = "消息所属的业务id")
    private Integer businessId;

    @ApiModelProperty(value = "本条消息的唯一标识，可用于去重判断")
    private String msgId;

    @ApiModelProperty(value = "返回的Msg")
    private String mtMsg;

    @ApiModelProperty(value = "授权实体的唯一标识")
    private String opBizCode;

    @ApiModelProperty(value = "服务商门店id（外卖/团购等业务适用）")
    @TableField("e_poiId")
    private String ePoiid;

    @ApiModelProperty(value = "json格式的消息数据")
    private String message;

    @ApiModelProperty(value = "状态0删除  1上架  2下架  ")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "扩展字段")
    private String extendInfo;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者")
    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
